import request from '@/utils/request'

//获取classroom信息
export function getAllClassRoomInfo(pageNum,pageSize) {
  return request({
    url: '/admin/getAllClassRoomInfo',
    method: 'get',
    params:{
      pageNum,
      pageSize
    }
  })
}

//增加教室信息
export function addClassRoom(data) {
  return request({
    url: '/admin/addClassRoom',
    method: 'post',
    data
  })
}

//修改student信息
export function editClassRoomById(data) {
  return request({
    url: '/admin/editClassRoomById',
    method: 'post',
    data
  })
}

//删除student信息
export function deleteClassRoomById(data) {
  return request({
    url: '/admin/deleteClassRoomById',
    method: 'post',
    data
  })
}

//动态查询
export function getClassRoomInfo(data,pageNum,pageSize) {
  return request({
    url: '/admin/getClassRoomInfo',
    method: 'post',
    data,
    params:{
      pageSize,
      pageNum
    }

  })
}




